package com.peanut.baby.mvp.msg;

import com.peanut.baby.model.AppMsg;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/8/25.
 */

public interface MsgContract {
    interface View extends BaseView{
        void onMsgGet(List<AppMsg> msgs);
        void onGetMsgFailed(String reason);
    }

    interface Presenter extends BasePresenter{
        void getMsgList(int pageNo, int pageSize);
        void setMsgReaded(AppMsg msg);
    }
}
